package admin

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

type MainController struct{}
type EmptyList struct{}

func (con MainController) Index(c *gin.Context) {
	c.HTML(http.StatusOK, "index.html", gin.H{})
}

func (con MainController) Welcome(c *gin.Context) {
	c.HTML(http.StatusOK, "admin/main/welcome.html", gin.H{})
}
func (con MainController) Info(c *gin.Context) {
	c.JSON(http.StatusOK, gin.H{
		"msg":  "请求成功",
		"code": 200,
		"data": gin.H{},
	})
}
func (con MainController) Dashboard(c *gin.Context) {
	c.JSON(http.StatusOK, gin.H{
		"msg":  "请求成功",
		"code": 200,
		"data": gin.H{
			"user_total":          0,
			"order_total":         0,
			"order_total_money":   0,
			"reward_amount_total": 0,
		},
	})
}
func (con MainController) SalesChartOption(c *gin.Context) {
	var emptyList []EmptyList
	c.JSON(http.StatusOK, gin.H{
		"msg":  "请求成功",
		"code": 200,
		"data": gin.H{
			"orderData": emptyList,
			"salesData": emptyList,
			"xAxisData": emptyList,
		},
	})
}
